//
//  maskLayer.m
//  OptimumCarCharge
//
//  Created by 童巍 on 16/12/8.
//  Copyright © 2016年 童巍. All rights reserved.
//

#import "maskLayer.h"

@implementation maskLayer


- (void)drawInContext:(CGContextRef)ctx
{
    CGContextSetRGBFillColor(ctx, 100, 100, 100, 1);
//    CGContextFillRect(ctx, CGRectMake(kWidthOfPt(190), kHeightOfPt(600), kWidthOfPt(700), kHeightOfPt(700)));
    CGContextFillRect(ctx, CGRectMake(0, 0, kScreenWidth, kHeightOfPt(600)));
    CGContextFillRect(ctx, CGRectMake(0, kHeightOfPt(590), kWidthOfPt(190),  kHeightOfPt(720)));
    CGContextFillRect(ctx, CGRectMake(0, kHeightOfPt(600) + kHeightOfPt(700), kScreenWidth, kScreenHeight - kHeightOfPt(600) - kHeightOfPt(700)));
    CGContextFillRect(ctx, CGRectMake(kWidthOfPt(190) + kWidthOfPt(700), kHeightOfPt(590), kWidthOfPt(190), kHeightOfPt(720)));
}
@end
